package manager
{
	import data.SelfInfo;
	
	import flash.events.Event;
	import flash.events.EventDispatcher;

	public class PlayerManager extends EventDispatcher
	{
		public function PlayerManager()
		{
		}
		
		private static var _instance:PlayerManager;

		public function get self():SelfInfo
		{
			return _self;
		}

		public function set self(value:SelfInfo):void
		{
			_self = value;
			dispatchEvent(new Event(Event.COMPLETE));
		}

		public static function get Instance():PlayerManager
		{
			if(_instance == null)
			{
				_instance = new PlayerManager();
			}
			return _instance;
		}
		
		private var _self:SelfInfo;
	}
}